import request from '@/utils/request'

const notice = {
  listNotice(page,query) {
    return request({
      url: 'admin/sys-notice/page/'+page.current+'/'+page.size,
      method: 'get',
      params: query

    })
  },
  getNotice(id) {
    return request({
      url: 'admin/sys-notice/get/'+id,
      method: 'get'

    })
  },
  delNotice(ids) {
    return request({
      url: 'admin/sys-notice/remove/'+ids,
      method: 'delete'

    })
  },
  addNotice(data) {
    return request({
      url: 'admin/sys-notice/create',
      method: 'post',
      data: data

    })
  },
  updateNotice(data) {
    return request({
      url: 'admin/sys-notice/update',
      method: 'put',
      data: data

    })
  },
}

export default notice
